home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir35 / cff51b.zip / PORTS / PORTS.DOC < prev    next >
Text File  |  1993-10-22  |  2KB  |  39 lines

  1.     The first thing you must do is to make a version of cfport.c that
  2.     compiles on your system with your compiler. Then you should make
  3.     the test programs in the test directory. If you experience any
  4.     errors with the test programs the problem is either: 
  5.  
  6.         1. cfport.c is failing.
  7.         2. your compiler is not compatible with gcc subroutine linkage
  8.            and/or register preservation.
  9.  
  10.     Usually, problem #2 will show up immediately -- just give up, there
  11.     is no hope. Perhaps someday gcc will contain command line options
  12.     which will allow changes to it's linkage conventions.
  13.  
  14.     I have included sample ports and makefiles for djcc, emx, ztc, and cset2.
  15.     ztc and cset2 don't work (is it problem 2? I think so).
  16.  
  17.     A unix port for gcc should be a piece of cake, just take the djcc port and
  18.     set PCDOS = 0.
  19.  
  20.     The emx ports come in two flavors: 1. A port which works under both
  21.     DOS and OS2 2.x. 2. An experimental port which works only under OS2.
  22.     The experimental emx OS2 port was a prelude to my cset2 experiment.
  23.     Namely, sbrk is emulated within cfport.c.
  24.  
  25.     NOTE: emx has a lot of heap options that I have ignored.
  26.  
  27.     FILES
  28.         cfport.cs2    // ibm cset2 for OS2 (fails to run)
  29.         cfport.emx    // emx for DOS and OS2
  30.         cfport.djc    // djcc DOS extender (the libraries were compiled w/djcc)
  31.         cfport.ztc    // zortech c++ version 3.0 w/dos extender (fails to run)
  32.  
  33.     MAKEFILES
  34.         emxdos.mak    // the DOS + OS2 version
  35.         emxos2.mak    // the experimental OS2 version
  36.         djcc.mak    // djcc
  37.         cset2.mak    // cset2
  38.  
  39.